/*
 * Keyboard.java
 *
 * Created on 15 de octubre de 2006, 1:55
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package ub.es.ubictionary.logic;

/**
 *
 * @author aram
 */
public class Keyboard {
    
    public static final int KEY_1 = 0;
    public static final int KEY_2 = 1;
    public static final int KEY_3 = 2;
    public static final int KEY_4 = 3;
    public static final int KEY_5 = 4;
    public static final int KEY_6 = 5;
    public static final int KEY_7 = 6;
    public static final int KEY_8 = 7;
    public static final int KEY_9 = 8;
    
    private String name;
    private String[] keys;
    /** Creates a new instance of Keyboard */
    public Keyboard() {
        name = "";
        keys = new String[9];
    }
    
    public Keyboard(String name){
        keys = new String[9];
        this.name = name;
    }
    
    public Keyboard(String name, String [] keys){
        this.keys = keys;
        this.name = name;
    }
    
    public void setKey(int i, String k){
        keys[i] = k;
    }
    
    public String getKey(int i){
        return keys[i];
    }
    
    public String[] getKeys(){
        return keys;
    }
    
    public void setKeys(String keys[]){
        this.keys = keys;
    }
    
    public String getName(){
        return name;
    }
    
    
}
